﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/InternalPage.Master"
  Inherits="System.Web.Mvc.ViewPage<QuizDetailsViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
  Detail Quiz Report
</asp:Content>
<asp:Content ID="quizDetailsContent" ContentPlaceHolderID="PageHeader" runat="server">
  Detail Quiz Report
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
  <div class="quiz-results">
    <%: Model.QuizName %>
    - Taken By
    <%: Model.TakerName %>
  </div>
  <div style="margin-top: 15px">
    <table class="grid" border="0" cellpadding="0" cellspacing="0" style="width: 600px;">
      <thead>
        <tr style="text-align: center">
          <th class="ui-state-default ui-th-column" style="width: 50%;">
            Question
          </th>
          <th class="ui-state-default ui-th-column" style="width: 25%;">
            Answer
          </th>
          <th class="ui-state-default ui-th-column" style="width: 25%;">
            Correct Answer
          </th>
        </tr>
      </thead>
      <tbody>
        <% Model.Questions.Each(m =>
                               {
        %>
        <tr>
          <td>
            <%: m.Text %>
          </td>
          <td>
            <%: m.Answer %>
          </td>
          <td>
            <%: m.CorrectAnswer %>
          </td>
        </tr>
        <% }); %>
      </tbody>
    </table>
  </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Scripts" runat="server">
</asp:Content>
